﻿namespace DataGeneration.Domain.CustomProcessors
{
    /// <summary>
    /// Defines the type TelephoneNumberGenerator
    /// </summary>
    public class TelephoneNumberGenerator
    {
        /// <summary>
        /// Generates the telephone number.
        /// </summary>
        /// <returns></returns>
        public static string GenerateTelephoneNumber()
        {
            return string.Format("01{0}1{1}{2}", RandomMizer.GetNextValue(1, 9)
                                 , RandomMizer.GetNextValue(21, 59)
                                 , RandomMizer.GetNextValue(10001, 50000));
        }
    }
}